package com.caocaog.market.controller;

import com.caocaog.market.entity.PushResult;
import com.caocaog.market.service.PushResultService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.base.controller.GenericController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 推送结果管理
 *
 * @author chechen
 * @date 2022-05-25
 */
@RestController
@Api(value = "pushResult", tags = PushResultController.TABLE_MEANING)
@RequestMapping("/api/pushResult")
public class PushResultController extends GenericController<PushResult, PushResultService> {

    public static final String TABLE_MEANING = "推送结果管理";

    @GetMapping
    @ApiOperation(value = TABLE_MEANING)
    public Result<PushResult> getPushResult(String date) {
        return Result.OK(super.service.getPushResult(date));
    }

}
